<!DOCTYPE html>
<html lang="en">
<%
layout("/common/_body.html",{title:'修改密码'}){
%>
<body>
<!-- 页面头部 -->
<div class="header">
    <div class="header_wrap">
        <div class="header_lt">
            <h3>武汉市森林公安大数据平台</h3>
        </div>
        <%
        layout("/common/_bar.html"){}
        %>
    </div>
</div>
<!-- 中间区域 -->
<div class="main">
    <div class="menu_box">
        <%
        layout("/common/_userMenu.html",{type:2}){}
        %>
        <h3>${msg!}</h3>
        <form action="/web/rest">
        <div class="userform">
            <div class="line_item">
                <span class="label">原始密码：</span>
                <div class="line_int">
                    <div class="inputBox"><input name="oldPassword"  placeholder="请输入原始密码" type="password"/></div>
                </div>
            </div>
            <div class="line_item">
                <span class="label">设置密码：</span>
                <div class="line_int">
                    <div class="inputBox"><input id="p1"  placeholder="设置您的登录密码" type="password"/></div>
                </div>
            </div>
            <div class="line_item">
                <span class="label">验证密码：</span>
                <div class="line_int">
                    <div class="inputBox"><input id="p2" name="passowrd" placeholder="再次输入您的登录密码" type="password"/></div>
                </div>
            </div>
            <div class="line_btn">
                <span onclick="submitForm()" class="saveBtn">保存</span>
            </div>
        </div>
        </form>
    </div>
</div>

<!-- 页面底部 -->
<div class="footer">
    <div class="footer_wrap">武汉市森林公安局版权所有</div>
</div>
<%}%>
<script>
    function submitForm(){
       var p1 = $("#p1").val();
       var p2 = $("#p2").val();
        if(p1===p2&&p1!=""){
            $("form").submit();
        }else{
            alert("密码不匹配")
        }

    }

</script>
</body>
</html>
